package com.lemon.boot.po;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * 租户表持久层对象，对应数据库
 *
 * @author Lemon
 * @since 2024-02-29
 */
@Getter
@Setter
@ToString
@ApiModel(value = "租户表")
@TableName("sys_tenant")
public class TenantPO implements Serializable {

    private static final long serialVersionUID = 1L;

    //主键ID
    @TableId(value = "id")
    @ApiModelProperty(value = "主键ID")
    private Long id;

    //租户全称
    @ApiModelProperty(value = "租户全称")
    private String fullName;

    //租户简称
    @ApiModelProperty(value = "租户简称")
    private String abbName;

    //营业期限-开始日期
    @ApiModelProperty(value = "营业期限-开始日期")
    private LocalDate startDate;

    //营业期限-结束日期
    @ApiModelProperty(value = "营业期限-结束日期")
    private LocalDate endDate;

    //法人姓名
    @ApiModelProperty(value = "法人姓名")
    private String legalPerson;

    //证照编号
    @ApiModelProperty(value = "证照编号")
    private String licenseNumber;

    //社会统一信用代码
    @ApiModelProperty(value = "社会统一信用代码")
    private String socialCode;

    //营业执照照片
    @ApiModelProperty(value = "营业执照照片")
    private String certImg;

    //电话
    @ApiModelProperty(value = "电话")
    private String phone;

    //省ID
    @ApiModelProperty(value = "省ID")
    private Long provinceId;

    //市ID
    @ApiModelProperty(value = "市ID")
    private Long cityId;

    //县ID
    @ApiModelProperty(value = "县ID")
    private Long countyId;

    //地址
    @ApiModelProperty(value = "地址")
    private String address;

    //创建人
    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    //修改人
    @ApiModelProperty(value = "修改人")
    @TableField(fill = FieldFill.UPDATE)
    private String updateBy;

    //修改时间
    @TableField(fill = FieldFill.UPDATE)
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    //状态 1正常 0异常
    @ApiModelProperty(value = "状态 1正常 0异常")
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    //删除状态 1是 0否
    @TableLogic
    @ApiModelProperty(value = "删除状态 1是 0否")
    private Integer deleted;


}
